﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using CarShop.Domain.Entities;

namespace CarShop.Services.Contracts.Interfaces
{
    public interface ICarService
    {
        IEnumerable<Car> GetCars(Func<Car, bool> predicate, int page, int countOnPage, out int totalPages);
        IEnumerable<Car> GetNotSoldCars(Func<Car, bool> predicate, int page, int countOnPage, out int totalPages);
        bool AddCar(Car car);
        bool UpdateCar(Car car);
        Car GetCar(int id);
        Car GetCarWithAllInfo(int id);
    }
}
